.class Lframent/FramentOrder$5;
.super Ljava/lang/Thread;
.source "FramentOrder.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lframent/FramentOrder;->getShopSource()Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lframent/FramentOrder;


# direct methods
.method constructor <init>(Lframent/FramentOrder;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lframent/FramentOrder$5;->this$0:Lframent/FramentOrder;

    .line 1207
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 25

    .prologue
    .line 1209
    invoke-super/range {p0 .. p0}, Ljava/lang/Thread;->run()V

    .line 1211
    new-instance v14, Landroid/os/Message;

    invoke-direct {v14}, Landroid/os/Message;-><init>()V

    .line 1213
    .local v14, "msg":Landroid/os/Message;
    new-instance v20, Ljava/lang/StringBuilder;

    move-object/from16 v0, p0

    iget-object v0, v0, Lframent/FramentOrder$5;->this$0:Lframent/FramentOrder;

    move-object/from16 v21, v0

    move-object/from16 v0, v21

    iget-object v0, v0, Lframent/FramentOrder;->m:Lmyapp/MyApp;

    move-object/from16 v21, v0

    invoke-virtual/range {v21 .. v21}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v21

    invoke-static/range {v21 .. v21}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v21

    invoke-direct/range {v20 .. v21}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 1214
    const-string v21, "/index.php?ctrl=app&action=getshopnew&shopid="

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    .line 1215
    move-object/from16 v0, p0

    iget-object v0, v0, Lframent/FramentOrder$5;->this$0:Lframent/FramentOrder;

    move-object/from16 v21, v0

    # getter for: Lframent/FramentOrder;->shopid:Ljava/lang/String;
    invoke-static/range {v21 .. v21}, Lframent/FramentOrder;->access$2(Lframent/FramentOrder;)Ljava/lang/String;

    move-result-object v21

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    const-string v21, "&ios=marketos&datatype=json"

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    .line 1213
    invoke-virtual/range {v20 .. v20}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v19

    .line 1217
    .local v19, "url":Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v0, v0, Lframent/FramentOrder$5;->this$0:Lframent/FramentOrder;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-object v0, v0, Lframent/FramentOrder;->m:Lmyapp/MyApp;

    move-object/from16 v20, v0

    invoke-static/range {v19 .. v20}, LPlugclass/HttpConn;->getStr(Ljava/lang/String;Lmyapp/MyApp;)Ljava/lang/String;

    move-result-object v17

    .line 1221
    .local v17, "str":Ljava/lang/String;
    :try_start_0
    new-instance v13, Lorg/json/JSONObject;

    move-object/from16 v0, v17

    invoke-direct {v13, v0}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 1222
    .local v13, "json":Lorg/json/JSONObject;
    const-string v20, "error"

    move-object/from16 v0, v20

    invoke-virtual {v13, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v20

    const-string v21, "true"

    invoke-virtual/range {v20 .. v21}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v20

    if-eqz v20, :cond_0

    .line 1223
    const-string v20, "msg"

    move-object/from16 v0, v20

    invoke-virtual {v13, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v20

    move-object/from16 v0, v20

    iput-object v0, v14, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 1224
    const/16 v20, 0x1

    move/from16 v0, v20

    iput v0, v14, Landroid/os/Message;->arg1:I

    .line 1225
    sget-object v20, Lframent/FramentOrder;->h:Landroid/os/Handler;

    move-object/from16 v0, v20

    invoke-virtual {v0, v14}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 1346
    .end local v13    # "json":Lorg/json/JSONObject;
    :goto_0
    return-void

    .line 1228
    .restart local v13    # "json":Lorg/json/JSONObject;
    :cond_0
    const-string v20, "msg"

    move-object/from16 v0, v20

    invoke-virtual {v13, v0}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v20

    if-eqz v20, :cond_1

    .line 1229
    const/16 v20, 0x2

    move/from16 v0, v20

    iput v0, v14, Landroid/os/Message;->arg1:I

    .line 1230
    sget-object v20, Lframent/FramentOrder;->h:Landroid/os/Handler;

    move-object/from16 v0, v20

    invoke-virtual {v0, v14}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 1338
    .end local v13    # "json":Lorg/json/JSONObject;
    :catch_0
    move-exception v6

    .line 1340
    .local v6, "e":Lorg/json/JSONException;
    invoke-virtual {v6}, Lorg/json/JSONException;->printStackTrace()V

    .line 1343
    const/16 v20, 0x2

    move/from16 v0, v20

    iput v0, v14, Landroid/os/Message;->arg1:I

    .line 1344
    sget-object v20, Lframent/FramentOrder;->h:Landroid/os/Handler;

    move-object/from16 v0, v20

    invoke-virtual {v0, v14}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_0

    .line 1233
    .end local v6    # "e":Lorg/json/JSONException;
    .restart local v13    # "json":Lorg/json/JSONObject;
    :cond_1
    :try_start_1
    const-string v20, "msg"

    move-object/from16 v0, v20

    invoke-virtual {v13, v0}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v12

    .line 1235
    .local v12, "jarray":Lorg/json/JSONArray;
    const/4 v10, 0x0

    .local v10, "i":I
    :goto_1
    invoke-virtual {v12}, Lorg/json/JSONArray;->length()I

    move-result v20

    move/from16 v0, v20

    if-lt v10, v0, :cond_2

    .line 1334
    move-object/from16 v0, v17

    iput-object v0, v14, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 1336
    const/16 v20, 0x12

    move/from16 v0, v20

    iput v0, v14, Landroid/os/Message;->arg1:I

    .line 1337
    sget-object v20, Lframent/FramentOrder;->h:Landroid/os/Handler;

    move-object/from16 v0, v20

    invoke-virtual {v0, v14}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_0

    .line 1236
    :cond_2
    invoke-virtual {v12, v10}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v20

    const-string v21, "det"

    invoke-virtual/range {v20 .. v21}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v18

    .line 1237
    .local v18, "tarray":Lorg/json/JSONArray;
    new-instance v16, Lbean/ShoptypeBean;

    invoke-direct/range {v16 .. v16}, Lbean/ShoptypeBean;-><init>()V

    .line 1238
    .local v16, "stb":Lbean/ShoptypeBean;
    invoke-virtual {v12, v10}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v20

    const-string v21, "id"

    invoke-virtual/range {v20 .. v21}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v20

    move-object/from16 v0, v16

    move-object/from16 v1, v20

    invoke-virtual {v0, v1}, Lbean/ShoptypeBean;->setId(Ljava/lang/String;)V

    .line 1239
    invoke-virtual {v12, v10}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v20

    const-string v21, "name"

    invoke-virtual/range {v20 .. v21}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v20

    move-object/from16 v0, v16

    move-object/from16 v1, v20

    invoke-virtual {v0, v1}, Lbean/ShoptypeBean;->setname(Ljava/lang/String;)V

    .line 1241
    move-object/from16 v0, p0

    iget-object v0, v0, Lframent/FramentOrder$5;->this$0:Lframent/FramentOrder;

    move-object/from16 v20, v0

    # getter for: Lframent/FramentOrder;->tempsp:Ljava/util/ArrayList;
    invoke-static/range {v20 .. v20}, Lframent/FramentOrder;->access$11(Lframent/FramentOrder;)Ljava/util/ArrayList;

    move-result-object v20

    if-eqz v20, :cond_3

    .line 1242
    move-object/from16 v0, p0

    iget-object v0, v0, Lframent/FramentOrder$5;->this$0:Lframent/FramentOrder;

    move-object/from16 v20, v0

    # getter for: Lframent/FramentOrder;->tempsp:Ljava/util/ArrayList;
    invoke-static/range {v20 .. v20}, Lframent/FramentOrder;->access$11(Lframent/FramentOrder;)Ljava/util/ArrayList;

    move-result-object v20

    move-object/from16 v0, v20

    move-object/from16 v1, v16

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 1245
    :cond_3
    const-string v7, ""

    .line 1246
    .local v7, "firstfuidType":Ljava/lang/String;
    const/4 v15, 0x1

    .line 1248
    .local v15, "startislocked":Z
    const/4 v11, 0x0

    .local v11, "j":I
    :goto_2
    invoke-virtual/range {v18 .. v18}, Lorg/json/JSONArray;->length()I

    move-result v20

    move/from16 v0, v20

    if-lt v11, v0, :cond_4

    .line 1235
    add-int/lit8 v10, v10, 0x1

    goto :goto_1

    .line 1250
    :cond_4
    move-object/from16 v0, p0

    iget-object v0, v0, Lframent/FramentOrder$5;->this$0:Lframent/FramentOrder;

    move-object/from16 v20, v0

    new-instance v21, Lbean/GoodsBean;

    invoke-direct/range {v21 .. v21}, Lbean/GoodsBean;-><init>()V

    move-object/from16 v0, v21

    move-object/from16 v1, v20

    iput-object v0, v1, Lframent/FramentOrder;->bb:Lbean/GoodsBean;

    .line 1251
    move-object/from16 v0, p0

    iget-object v0, v0, Lframent/FramentOrder$5;->this$0:Lframent/FramentOrder;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-object v0, v0, Lframent/FramentOrder;->bb:Lbean/GoodsBean;

    move-object/from16 v20, v0

    move-object/from16 v0, v18

    invoke-virtual {v0, v11}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v21

    const-string v22, "id"

    invoke-virtual/range {v21 .. v22}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v21

    invoke-virtual/range {v20 .. v21}, Lbean/GoodsBean;->setId(Ljava/lang/String;)V

    .line 1252
    move-object/from16 v0, v18

    invoke-virtual {v0, v11}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v20

    .line 1253
    const-string v21, "img"

    invoke-virtual/range {v20 .. v21}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    .line 1254
    .local v4, "checkimg":Ljava/lang/String;
    if-eqz v4, :cond_5

    const-string v20, ""

    move-object/from16 v0, v20

    invoke-virtual {v4, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v20

    if-nez v20, :cond_5

    .line 1256
    new-instance v20, Ljava/lang/StringBuilder;

    move-object/from16 v0, p0

    iget-object v0, v0, Lframent/FramentOrder$5;->this$0:Lframent/FramentOrder;

    move-object/from16 v21, v0

    move-object/from16 v0, v21

    iget-object v0, v0, Lframent/FramentOrder;->m:Lmyapp/MyApp;

    move-object/from16 v21, v0

    invoke-virtual/range {v21 .. v21}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v21

    invoke-static/range {v21 .. v21}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v21

    invoke-direct/range {v20 .. v21}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, v20

    invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    invoke-virtual/range {v20 .. v20}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    .line 1258
    :cond_5
    move-object/from16 v0, p0

    iget-object v0, v0, Lframent/FramentOrder$5;->this$0:Lframent/FramentOrder;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-object v0, v0, Lframent/FramentOrder;->bb:Lbean/GoodsBean;

    move-object/from16 v20, v0

    move-object/from16 v0, v18

    invoke-virtual {v0, v11}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v21

    const-string v22, "img"

    invoke-virtual/range {v21 .. v22}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v21

    invoke-virtual/range {v20 .. v21}, Lbean/GoodsBean;->setimg(Ljava/lang/String;)V

    .line 1259
    move-object/from16 v0, p0

    iget-object v0, v0, Lframent/FramentOrder$5;->this$0:Lframent/FramentOrder;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-object v0, v0, Lframent/FramentOrder;->bb:Lbean/GoodsBean;

    move-object/from16 v20, v0

    move-object/from16 v0, v18

    invoke-virtual {v0, v11}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v21

    .line 1260
    const-string v22, "name"

    invoke-virtual/range {v21 .. v22}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v21

    .line 1259
    invoke-virtual/range {v20 .. v21}, Lbean/GoodsBean;->setname(Ljava/lang/String;)V

    .line 1261
    move-object/from16 v0, p0

    iget-object v0, v0, Lframent/FramentOrder$5;->this$0:Lframent/FramentOrder;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-object v0, v0, Lframent/FramentOrder;->bb:Lbean/GoodsBean;

    move-object/from16 v20, v0

    move-object/from16 v0, v18

    invoke-virtual {v0, v11}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v21

    .line 1262
    const-string v22, "point"

    .line 1261
    invoke-virtual/range {v21 .. v22}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v21

    invoke-virtual/range {v20 .. v21}, Lbean/GoodsBean;->setpoint(Ljava/lang/String;)V

    .line 1264
    move-object/from16 v0, p0

    iget-object v0, v0, Lframent/FramentOrder$5;->this$0:Lframent/FramentOrder;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-object v0, v0, Lframent/FramentOrder;->bb:Lbean/GoodsBean;

    move-object/from16 v20, v0

    move-object/from16 v0, v18

    invoke-virtual {v0, v11}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v21

    .line 1265
    const-string v22, "typeid"

    .line 1264
    invoke-virtual/range {v21 .. v22}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v21

    invoke-virtual/range {v20 .. v21}, Lbean/GoodsBean;->settypeid(Ljava/lang/String;)V

    .line 1267
    if-eqz v15, :cond_9

    .line 1269
    const/4 v15, 0x0

    .line 1270
    move-object/from16 v0, v18

    invoke-virtual {v0, v11}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v20

    const-string v21, "typeid"

    invoke-virtual/range {v20 .. v21}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    .line 1271
    move-object/from16 v0, p0

    iget-object v0, v0, Lframent/FramentOrder$5;->this$0:Lframent/FramentOrder;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-object v0, v0, Lframent/FramentOrder;->bb:Lbean/GoodsBean;

    move-object/from16 v20, v0

    const-string v21, "1"

    invoke-virtual/range {v20 .. v21}, Lbean/GoodsBean;->setFirstid(Ljava/lang/String;)V

    .line 1272
    move-object/from16 v0, p0

    iget-object v0, v0, Lframent/FramentOrder$5;->this$0:Lframent/FramentOrder;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-object v0, v0, Lframent/FramentOrder;->bb:Lbean/GoodsBean;

    move-object/from16 v20, v0

    invoke-virtual {v12, v10}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v21

    const-string v22, "name"

    invoke-virtual/range {v21 .. v22}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v21

    invoke-virtual/range {v20 .. v21}, Lbean/GoodsBean;->setTitleName(Ljava/lang/String;)V

    .line 1285
    :cond_6
    :goto_3
    move-object/from16 v0, p0

    iget-object v0, v0, Lframent/FramentOrder$5;->this$0:Lframent/FramentOrder;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-object v0, v0, Lframent/FramentOrder;->bb:Lbean/GoodsBean;

    move-object/from16 v20, v0

    move-object/from16 v0, v18

    invoke-virtual {v0, v11}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v21

    .line 1286
    const-string v22, "sellcount"

    .line 1285
    invoke-virtual/range {v21 .. v22}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v21

    invoke-virtual/range {v20 .. v21}, Lbean/GoodsBean;->setsellcount(Ljava/lang/String;)V

    .line 1287
    move-object/from16 v0, p0

    iget-object v0, v0, Lframent/FramentOrder$5;->this$0:Lframent/FramentOrder;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-object v0, v0, Lframent/FramentOrder;->bb:Lbean/GoodsBean;

    move-object/from16 v20, v0

    move-object/from16 v0, v18

    invoke-virtual {v0, v11}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v21

    .line 1288
    const-string v22, "count"

    .line 1287
    invoke-virtual/range {v21 .. v22}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v21

    invoke-virtual/range {v20 .. v21}, Lbean/GoodsBean;->setcounts(Ljava/lang/String;)V

    .line 1289
    move-object/from16 v0, p0

    iget-object v0, v0, Lframent/FramentOrder$5;->this$0:Lframent/FramentOrder;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-object v0, v0, Lframent/FramentOrder;->bb:Lbean/GoodsBean;

    move-object/from16 v20, v0

    move-object/from16 v0, v18

    invoke-virtual {v0, v11}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v21

    .line 1290
    const-string v22, "goodattr"

    .line 1289
    invoke-virtual/range {v21 .. v22}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v21

    invoke-virtual/range {v20 .. v21}, Lbean/GoodsBean;->setAttr(Ljava/lang/String;)V

    .line 1291
    move-object/from16 v0, p0

    iget-object v0, v0, Lframent/FramentOrder$5;->this$0:Lframent/FramentOrder;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-object v0, v0, Lframent/FramentOrder;->bb:Lbean/GoodsBean;

    move-object/from16 v21, v0

    move-object/from16 v0, v18

    invoke-virtual {v0, v11}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v20

    const-string v22, "is_cx"

    move-object/from16 v0, v20

    move-object/from16 v1, v22

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v20

    if-eqz v20, :cond_a

    move-object/from16 v0, v18

    invoke-virtual {v0, v11}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v20

    const-string v22, "is_cx"

    move-object/from16 v0, v20

    move-object/from16 v1, v22

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v20

    :goto_4
    move-object/from16 v0, v21

    move-object/from16 v1, v20

    invoke-virtual {v0, v1}, Lbean/GoodsBean;->setDis(Ljava/lang/String;)V

    .line 1293
    move-object/from16 v0, v18

    invoke-virtual {v0, v11}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v20

    const-string v21, "bagcost"

    invoke-virtual/range {v20 .. v21}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v20

    .line 1292
    invoke-static/range {v20 .. v20}, Ljava/lang/Float;->parseFloat(Ljava/lang/String;)F

    move-result v2

    .line 1294
    .local v2, "bagcost":F
    move-object/from16 v0, p0

    iget-object v0, v0, Lframent/FramentOrder$5;->this$0:Lframent/FramentOrder;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-object v0, v0, Lframent/FramentOrder;->bb:Lbean/GoodsBean;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    invoke-virtual {v0, v2}, Lbean/GoodsBean;->setbagcost(F)V

    .line 1295
    move-object/from16 v0, v18

    invoke-virtual {v0, v11}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v20

    .line 1296
    const-string v21, "cost"

    invoke-virtual/range {v20 .. v21}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v20

    .line 1295
    invoke-static/range {v20 .. v20}, Ljava/lang/Float;->parseFloat(Ljava/lang/String;)F

    move-result v5

    .line 1297
    .local v5, "cost":F
    move-object/from16 v0, p0

    iget-object v0, v0, Lframent/FramentOrder$5;->this$0:Lframent/FramentOrder;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-object v0, v0, Lframent/FramentOrder;->bb:Lbean/GoodsBean;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    invoke-virtual {v0, v5}, Lbean/GoodsBean;->setcost(F)V

    .line 1301
    move-object/from16 v0, p0

    iget-object v0, v0, Lframent/FramentOrder$5;->this$0:Lframent/FramentOrder;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-object v0, v0, Lframent/FramentOrder;->bb:Lbean/GoodsBean;

    move-object/from16 v20, v0

    move-object/from16 v0, v18

    invoke-virtual {v0, v11}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v21

    const-string v22, "zhekou"

    invoke-virtual/range {v21 .. v22}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v21

    invoke-virtual/range {v20 .. v21}, Lbean/GoodsBean;->setZc(Ljava/lang/String;)V

    .line 1303
    move-object/from16 v0, p0

    iget-object v0, v0, Lframent/FramentOrder$5;->this$0:Lframent/FramentOrder;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-object v0, v0, Lframent/FramentOrder;->bb:Lbean/GoodsBean;

    move-object/from16 v20, v0

    move-object/from16 v0, v18

    invoke-virtual {v0, v11}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v21

    .line 1304
    const-string v22, "have_det"

    .line 1303
    invoke-virtual/range {v21 .. v22}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v21

    invoke-virtual/range {v20 .. v21}, Lbean/GoodsBean;->setHave_det(Ljava/lang/String;)V

    .line 1307
    move-object/from16 v0, p0

    iget-object v0, v0, Lframent/FramentOrder$5;->this$0:Lframent/FramentOrder;

    move-object/from16 v20, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lframent/FramentOrder$5;->this$0:Lframent/FramentOrder;

    move-object/from16 v21, v0

    # getter for: Lframent/FramentOrder;->helper:Ldbclass/DBOpenHelper;
    invoke-static/range {v21 .. v21}, Lframent/FramentOrder;->access$17(Lframent/FramentOrder;)Ldbclass/DBOpenHelper;

    move-result-object v21

    invoke-virtual/range {v21 .. v21}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v21

    .line 1308
    new-instance v22, Ljava/lang/StringBuilder;

    const-string v23, "select * from cart where goodsid="

    invoke-direct/range {v22 .. v23}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 1309
    move-object/from16 v0, v18

    invoke-virtual {v0, v11}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v23

    .line 1310
    const-string v24, "id"

    invoke-virtual/range {v23 .. v24}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v23

    .line 1309
    invoke-virtual/range {v22 .. v23}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v22

    .line 1308
    invoke-virtual/range {v22 .. v22}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v22

    .line 1310
    const/16 v23, 0x0

    .line 1307
    invoke-virtual/range {v21 .. v23}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v21

    invoke-static/range {v20 .. v21}, Lframent/FramentOrder;->access$18(Lframent/FramentOrder;Landroid/database/Cursor;)V

    .line 1311
    const/4 v9, 0x0

    .line 1312
    .local v9, "goodscount":I
    const/4 v8, 0x0

    .line 1313
    .local v8, "goodscostone":F
    const/4 v3, 0x1

    .line 1314
    .local v3, "checkgd":Z
    move-object/from16 v0, p0

    iget-object v0, v0, Lframent/FramentOrder$5;->this$0:Lframent/FramentOrder;

    move-object/from16 v20, v0

    # getter for: Lframent/FramentOrder;->cursor:Landroid/database/Cursor;
    invoke-static/range {v20 .. v20}, Lframent/FramentOrder;->access$19(Lframent/FramentOrder;)Landroid/database/Cursor;

    move-result-object v20

    if-eqz v20, :cond_7

    .line 1315
    :goto_5
    move-object/from16 v0, p0

    iget-object v0, v0, Lframent/FramentOrder$5;->this$0:Lframent/FramentOrder;

    move-object/from16 v20, v0

    # getter for: Lframent/FramentOrder;->cursor:Landroid/database/Cursor;
    invoke-static/range {v20 .. v20}, Lframent/FramentOrder;->access$19(Lframent/FramentOrder;)Landroid/database/Cursor;

    move-result-object v20

    invoke-interface/range {v20 .. v20}, Landroid/database/Cursor;->moveToNext()Z

    move-result v20

    if-nez v20, :cond_b

    .line 1323
    :cond_7
    move-object/from16 v0, p0

    iget-object v0, v0, Lframent/FramentOrder$5;->this$0:Lframent/FramentOrder;

    move-object/from16 v20, v0

    # getter for: Lframent/FramentOrder;->cursor:Landroid/database/Cursor;
    invoke-static/range {v20 .. v20}, Lframent/FramentOrder;->access$19(Lframent/FramentOrder;)Landroid/database/Cursor;

    move-result-object v20

    invoke-interface/range {v20 .. v20}, Landroid/database/Cursor;->close()V

    .line 1324
    move-object/from16 v0, p0

    iget-object v0, v0, Lframent/FramentOrder$5;->this$0:Lframent/FramentOrder;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-object v0, v0, Lframent/FramentOrder;->bb:Lbean/GoodsBean;

    move-object/from16 v20, v0

    invoke-static {v9}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v21

    invoke-virtual/range {v20 .. v21}, Lbean/GoodsBean;->setCart(Ljava/lang/String;)V

    .line 1326
    move-object/from16 v0, p0

    iget-object v0, v0, Lframent/FramentOrder$5;->this$0:Lframent/FramentOrder;

    move-object/from16 v20, v0

    # getter for: Lframent/FramentOrder;->tempgd:Ljava/util/ArrayList;
    invoke-static/range {v20 .. v20}, Lframent/FramentOrder;->access$12(Lframent/FramentOrder;)Ljava/util/ArrayList;

    move-result-object v20

    if-eqz v20, :cond_8

    .line 1328
    move-object/from16 v0, p0

    iget-object v0, v0, Lframent/FramentOrder$5;->this$0:Lframent/FramentOrder;

    move-object/from16 v20, v0

    # getter for: Lframent/FramentOrder;->tempgd:Ljava/util/ArrayList;
    invoke-static/range {v20 .. v20}, Lframent/FramentOrder;->access$12(Lframent/FramentOrder;)Ljava/util/ArrayList;

    move-result-object v20

    move-object/from16 v0, p0

    iget-object v0, v0, Lframent/FramentOrder$5;->this$0:Lframent/FramentOrder;

    move-object/from16 v21, v0

    move-object/from16 v0, v21

    iget-object v0, v0, Lframent/FramentOrder;->bb:Lbean/GoodsBean;

    move-object/from16 v21, v0

    invoke-virtual/range {v20 .. v21}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 1248
    :cond_8
    add-int/lit8 v11, v11, 0x1

    goto/16 :goto_2

    .line 1277
    .end local v2    # "bagcost":F
    .end local v3    # "checkgd":Z
    .end local v5    # "cost":F
    .end local v8    # "goodscostone":F
    .end local v9    # "goodscount":I
    :cond_9
    move-object/from16 v0, v18

    invoke-virtual {v0, v11}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v20

    const-string v21, "typeid"

    invoke-virtual/range {v20 .. v21}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v20

    move-object/from16 v0, v20

    invoke-virtual {v7, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v20

    if-nez v20, :cond_6

    .line 1278
    move-object/from16 v0, v18

    invoke-virtual {v0, v11}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v20

    const-string v21, "typeid"

    invoke-virtual/range {v20 .. v21}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    .line 1280
    move-object/from16 v0, p0

    iget-object v0, v0, Lframent/FramentOrder$5;->this$0:Lframent/FramentOrder;

    move-object/from16 v20, v0

    move-object/from16 v0, v20

    iget-object v0, v0, Lframent/FramentOrder;->bb:Lbean/GoodsBean;

    move-object/from16 v20, v0

    const-string v21, "1"

    invoke-virtual/range {v20 .. v21}, Lbean/GoodsBean;->setFirstid(Ljava/lang/String;)V

    goto/16 :goto_3

    .line 1291
    :cond_a
    const-string v20, ""

    goto/16 :goto_4

    .line 1316
    .restart local v2    # "bagcost":F
    .restart local v3    # "checkgd":Z
    .restart local v5    # "cost":F
    .restart local v8    # "goodscostone":F
    .restart local v9    # "goodscount":I
    :cond_b
    move-object/from16 v0, p0

    iget-object v0, v0, Lframent/FramentOrder$5;->this$0:Lframent/FramentOrder;

    move-object/from16 v20, v0

    # getter for: Lframent/FramentOrder;->cursor:Landroid/database/Cursor;
    invoke-static/range {v20 .. v20}, Lframent/FramentOrder;->access$19(Lframent/FramentOrder;)Landroid/database/Cursor;

    move-result-object v20

    move-object/from16 v0, p0

    iget-object v0, v0, Lframent/FramentOrder$5;->this$0:Lframent/FramentOrder;

    move-object/from16 v21, v0

    # getter for: Lframent/FramentOrder;->cursor:Landroid/database/Cursor;
    invoke-static/range {v21 .. v21}, Lframent/FramentOrder;->access$19(Lframent/FramentOrder;)Landroid/database/Cursor;

    move-result-object v21

    const-string v22, "goodscount"

    invoke-interface/range {v21 .. v22}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v21

    invoke-interface/range {v20 .. v21}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v20

    invoke-static/range {v20 .. v20}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v20

    invoke-virtual/range {v20 .. v20}, Ljava/lang/Integer;->intValue()I
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    move-result v9

    .line 1317
    int-to-float v0, v9

    move/from16 v20, v0

    mul-float v8, v20, v5

    goto/16 :goto_5
.end method

.method public declared-synchronized start()V
    .locals 1

    .prologue
    .line 1349
    monitor-enter p0

    :try_start_0
    invoke-super {p0}, Ljava/lang/Thread;->start()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 1350
    monitor-exit p0

    return-void

    .line 1349
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
